package com.cloud.freeflow.api.mapper;

import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import com.cloud.freeflow.api.entity.ProcActDef;
import com.cloud.freeflow.common.utils.BaseMapperHelper;

public interface ProcActDefMapper extends BaseMapperHelper<ProcActDef> {

	@Select("select max(act_def_id) from proc_act_def where proc_def_id = #{procDefId} and proc_def_ver = 0")
	@ResultType(value = Integer.class)
	int getMaxProcActDefId(Integer procDefId);
}